﻿@model Guline.SupportCMS.Models.LoginModel

@{
    ViewBag.Title = "Login to system";
    Layout = "~/Views/Shared/v1_admin_login.cshtml";
}
<div class="container">
    <div class="grid">
        <div class="row">
            <div class="span4"></div>
            <div class="span5 bg-white padding20">
                @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
                {
                    @Html.AntiForgeryToken()
                    <fieldset>
                        <legend><i class="icon-key"></i> @ViewBag.Title</legend>
                        @Html.LabelFor(m => m.UserName)
                        <div class="input-control text" data-role="input-control">
                            @Html.TextBoxFor(m => m.UserName)
                            <button class="btn-clear" tabindex="-1" type="button"></button>
                        </div>
                        @Html.ValidationMessageFor(m => m.UserName)


                        @Html.LabelFor(m => m.Password)
                        <div class="input-control password" data-role="input-control">
                            @Html.PasswordFor(m => m.Password)
                            <button class="btn-reveal" tabindex="-1" type="button"></button>
                        </div>
                        @Html.ValidationMessageFor(m => m.Password)
                        <div class="input-control checkbox" data-role="input-control">
                            <label>
                                <input type="checkbox" name="RememberMe" value="true">
                                <span class="check"></span>
                                RememberMe
                            </label>
                        </div>
                        <div class="clearfix"></div>
                        <input type="submit" value="Log in" />
                    </fieldset>
                    @Html.ValidationSummary(true)
                   
                }
            </div>

        </div>
        <div class="row">
            <div class="span4">
            </div>
            <div class="span5">
                @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
            </div>

        </div>
    </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
